﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Three_Week.DAL.Migrations
{
    public partial class gfhdsjkg : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "HouseType",
                columns: table => new
                {
                    HouseId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    HouseTypeName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HouseArea = table.Column<double>(type: "float", nullable: false),
                    HousePrice = table.Column<double>(type: "float", nullable: false),
                    IsWidons = table.Column<int>(type: "int", nullable: false),
                    PeolCount = table.Column<int>(type: "int", nullable: false),
                    HouseStage = table.Column<int>(type: "int", nullable: false),
                    HousePhoto = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    IsDelete = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_HouseType", x => x.HouseId);
                });

            migrationBuilder.CreateTable(
                name: "RoomNumber",
                columns: table => new
                {
                    RoomId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoomName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RoomType = table.Column<int>(type: "int", nullable: false),
                    TypeStage = table.Column<int>(type: "int", nullable: false),
                    RoomStage = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoomNumber", x => x.RoomId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "HouseType");

            migrationBuilder.DropTable(
                name: "RoomNumber");
        }
    }
}
